<template>
	<view>
		<image src="../../../static/me/bg1.jpg" mode="" style="position: fixed;top: 0; left: 0;width: 100vw; height: 100vh;"></image>
		<view style="z-index: 100;position: absolute;width: 100vw;padding: 10px;">
			<view style="padding: 10px 10px 0;" @click="callPhone1('11234')">点击拨打客服电话1: 10086</view>
			<view style="padding: 10px 10px 0;" @click="callPhone2('11234')">点击拨打客服电话2: 66666</view>
			<view style="padding: 10px 10px 0;" @click="setClipboardData">点击复制QQ: 2414402332</view>
		
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		// 拨打电话
		callPhone1(tel) {
			uni.makePhoneCall({
				phoneNumber: tel
			});
		},
		callPhone2(tel) {
			uni.makePhoneCall({
				phoneNumber: tel
			});
		},
		// 负责内容到剪切板
		setClipboardData() {
			uni.setClipboardData({
				data: '2414402332',
				success: function() {
					this.$msg("已复制到剪切板")
				}
			});
		}
	}
};
</script>

<style></style>
